<div class="x_panel">
  <div class="x_content row">
    <div class="col-xs-12">
      <form class="form-horizontal form-label-left" action="{$actionUrl}" method="post" enctype="multipart/form-data">
        <div class="form-group">
          <label class="control-label col-md-2 col-sm-4 col-xs-12">广告标题：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[adv_title]" value="">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">广告图片：</label>
          <div class="checkbox col-md-10 col-sm-12 com-xs-12">
            <input type="file" name="pic">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">广告链接：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control col-md-3 col-xs-12" required="required" type="text" name="form[adv_link]" value="">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">开始时间：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input type="text"  name="form[start_time]" value="" placeholder="开始时间" id="J_dh_start" class="form-control-new" >
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">结束时间：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input type="text"  name="form[end_time]" value="" placeholder="结束时间" id="J_dh_end" class="form-control-new" >
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">投放位置：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
          <select name="form[adv_position]" class="form-control-new">
            <option selected="selected" value="0">首页</option>
          </select>
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">排序：</label>
          <div class="checkbox col-md-10 col-sm-8 col-xs-12">
            <input class="form-control-new col-md-3 col-xs-12" placeholder="数字越小，排序越靠前" required="required" type="text" name="form[adv_sort]" value="">
          </div>

          <label class="control-label col-md-2 col-sm-4 col-xs-12">状态：</label>
          <div class="col-md-10 col-sm-9 col-xs-12">
              <input  type="radio" checked="checked" name="form[adv_status]" value="1" />启用
              <input  type="radio" name="form[adv_status]" value="0" />停用
          </div>

        </div>
        <div class="col-md-3 col-sm-12 col-xs-12 col-md-offset-4 col-sm-offset-4">
          <button class="btn btn-primary" type="submit">新增</button>
        </div>
      </form>
    </div>
  </div>
</div>

<script type="text/javascript" src="{$theme}/libs/js/datepicker/bootstrap-datetimepicker.min.js"></script>
<script>
    var startDate = $('#J_dh_start').datetimepicker({
        format: "yyyy-MM-dd hh:ii:ss",
        autoclose: true,
        todayBtn: true
    })

    var endDate = $('#J_dh_end').datetimepicker({
        format: "yyyy-MM-dd hh:ii:ss",
        autoclose: true,
        todayBtn: true
    })
</script>